package com.hk.model;

import java.io.Serializable;

/**
 * @Author: KangWang
 * Date: 2021/5/18 16:23
 * State：新闻简介
 */
public class News implements Serializable {

    private int id;
    private String title;
    private String subhead;//副标题
    private String content;//新闻类容
    private String releaseDate;//发布日期
    private String author;//作者
    private int hits;//浏览次数
    private int typeId;//对应新闻类型ID
//  不与数据库对应
    private String newsType; //对应新闻类型
    private String gmtCreate;
    private String gmtModified;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubhead() {
        return subhead;
    }

    public void setSubhead(String subhead) {
        this.subhead = subhead;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(String releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getHits() {
        return hits;
    }

    public void setHits(int hits) {
        this.hits = hits;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getNewsType() {
        return newsType;
    }

    public void setNewsType(String newsType) {
        this.newsType = newsType;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }

    public News(int id, String title, String subhead, String content, String releaseDate, String author, int hits, int typeId, String gmtCreate, String gmtModified) {
        this.id = id;
        this.title = title;
        this.subhead = subhead;
        this.content = content;
        this.releaseDate = releaseDate;
        this.author = author;
        this.hits = hits;
        this.typeId = typeId;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public News() {

    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", subhead='" + subhead + '\'' +
                ", content='" + content + '\'' +
                ", releaseDate=" + releaseDate +
                ", author=" + author +
                ", hits=" + hits +
                ", typeId=" + typeId +
                ", newsType=" + newsType +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                '}';
    }
}
